\expandafter\ifx\csname doTocEntry\endcsname\relax \expandafter\endinput\fi 
\par 
